package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Complex;
import com.dao.ComplexMapper;
import com.dao.ProjectMapper;
import com.service.ComplexService;
@Service
public class ComplexServiceImpl implements ComplexService {
	@Autowired
	private ComplexMapper dao;

	public int deleteByPrimaryKey(Integer id) {
		return dao.deleteByPrimaryKey(id);
	}

	public int insert(Complex record) {
		return dao.insert(record);
	}

	public int insertSelective(Complex record) {
		return dao.insertSelective(record);
	}

	public Complex selectByPrimaryKey(Integer id) {
		return dao.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Complex record) {
		return dao.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Complex record) {
		return dao.updateByPrimaryKey(record);
	}

	public List<Complex> select(Map map) {
		return dao.select(map);
	}

	public List<Complex> selectByProjectId(Integer id) {
		return dao.selectByProjectId(id);
	}

	public int inserttotal(Map<String,Object> complexs) {
		return dao.inserttotal(complexs);
	}

}
